package product;

import java.io.Serializable;
import java.util.Date;
import java.util.Vector;

public class TempData implements Serializable {

	String index; // 사원 번호
	String password; // 비밀 번호 
	String level; // 직책
	String name; // 이름
	String start_date; // 입사날 yy-MM-dd 형식 14-05-09
	Vector<String> date = new Vector<String>(); // 출근일. 맨날 출근할그니께  
	String today;//출근,결근,휴가 날짜.
	int count = 0; // 벡터 사이즈 
	int leave ; // 휴가여부 // 유급휴가종류(없음=0,월차=1,년차=2,생리=3,기타=4) 
	int amount; // 총금액
	int pay; // 일당
	
	String team; // 부서
	int check; // 0 = 결근, 1 = 출근



	public TempData(String level, String name, String date, int pay){ // 직책, 성명, 출근일, 일당 
		this.level = level;
		this.name = name;
		this.date.add(date);
		//this.leave = leave; 
		this.pay = pay;
	}
	
	
	//이름,코드,직책,부서,비밀번호,출석여부,휴가여부,일급여,입사일,출석날짜
	public TempData(String name, String code, String level, String team, String password, int check, int leave, int pay, String joinDay, String today) {
		
		this.name=name;
		this.index=code;
		this.level=level;
		this.team=team;
		this.password=password;
		this.check=check;
		this.leave=leave;
		this.pay=pay;
		this.start_date=joinDay;
		this.today=today;
		
	}


	public int getCount() {
		return this.date.size();
	}

	public void setCount(int count) {
		this.count = count;
	}


	public String getIndex() {
		return index;
	}



	public void setIndex(String index) {
		this.index = index;
	}



	public int getAmount() {
		return amount;
	}
	public void setAmount(int amount) {
		this.amount = amount;
	}

	public String getLevel() {
		return level;
	}
	public void setLevel(String level) {
		this.level = level;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getStart_date() {
		return start_date;
	}
	public void setStart_date(String start_date) {
		this.start_date = start_date;
	}

	public Vector<String> getDate() {
		return date;
	}
	public void setDate(Vector<String> date) {
		this.date = date;
	}

	public int getPay() {
		return pay;
	}

	public void setPay(int pay) {
		this.pay = pay;
	}

	public String getPassword() {
		return password;
	}


	public void setPassword(String password) {
		this.password = password;
	}


	public int getLeave() {
		return leave;
	}


	public void setLeave(int leave) {
		this.leave = leave;
	}


	public String getTeam() {
		return team;
	}


	public void setTeam(String team) {
		this.team = team;
	}


	public int getCheck() {
		return check;
	}


	public void setCheck(int check) {
		this.check = check;
	}


	public String getToday() {
		return today;
	}


	public void setToday(String today) {
		this.today = today;
	}	

	

	
}
